import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
    {
        // 首页
        path: "/",
        name: "home",
        meta: { isTab: true },
        component: () => import("@/views/home/index.vue"),
    }, {
        path: "/message",
        name: "message",
        meta: { isTab: true },
        component: () => import("@/views/message/index.vue")
    }, {
        path: "/myVideo",
        name: "myVideo",
        meta: { isTab: true },
        component: () => import("@/views/myVideo/index.vue")
    }, {
        path: "/mine",
        name: "mine",
        meta: { isTab: true },
        component: () => import("@/views/mine/index.vue")
    }, {
        path: "/order",
        name: "order",
        meta: { isTab: true },
        component: () => import("@/components/Order.vue")
    }, {
        // 订单详情
        path: "/orderStatus/:id",
        name: "orderStatus",
        meta: { isTab: true },
        component: () => import("@/components/OrderStatus.vue")
    }, {
        // 商品详情
        path: "/details",
        name: "details",
        meta: { isTab: true },
        component: () => import("@/components/Details.vue")
    }

]

const router = createRouter({
    history: createWebHashHistory(),
    routes
});

export default router;
